import java.util.Scanner;

/**
 * Created with IDEA
 * author:ju bai
 * Date:2021/5/11
 * Time:16:36
 **/
public class Main1 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            String str = sc.nextLine();
            System.out.println(solve(str));
        }
    }

    /**
     * 每日一题-字符串反转
     *
     * @param str 要反转的字符串
     * @return 反转后的字符串
     */
    public static String solve(String str) {
        // write code here
        char[] ans = str.toCharArray();
        for (int i = 0; i < str.length(); i++) {
            ans[i] = str.charAt(str.length() - 1 - i);
            //从最后一个-i,表示从后往前走
        }
        return new String(ans);//字符串形式输出
    }

}
